{php $records1=tag("table=category&condition=moduleid=".$printmoduleid." and parentid=0&pagesize=6&order=listorder,catid&template=null");}
{if $records1}
<div class="main">
	<div class="container">
<div class="infomax04">
	<div class="hr clearfix">
		<div class="row">
			<div class="boxvalue item-top">
				<div class="owl-carousel owl-buttons-hidden carousel-autoplay6 box1">
				{loop $records1 $k $r1}
					<?php
						$printk=$k+1
					?>
					<div class="boxvalue">
						<div class="itemunit scrollbox scroll0{$objectcount}box{if $k==0} scrolljt{/if}">
							<div class="info scroll0{$objectcount}{if $k==0} active{/if}">
								<img src="{DT_PATH}template/{$CFG[template]}/skin/images/nothing_box.png">
								<p>0{$printk}<br><span>{strip_tags($r1[catname])}</span></p>
							</div>
						</div>
					</div>
				{/loop}
				</div>
			</div>
		</div>
	</div>
	<div class="box2 clearfix">
		<div class="boxvalue item-bottom">
			{loop $records1 $k $r1}
			<div class="scroll0{$objectcount}content clearfix{if $k>0} noactive{/if}">
				{php $records2=tag("moduleid=".$printmoduleid."&catid=".$r1[catid]."&condition=status=3 and thumb<>''&pagesize=4&order=level desc,addtime desc&template=null");}
				{loop $records2 $r2}
				<div class="col-md-3 col-xs-6 clearfix item-top"><div class="box-value"><div class="iteminfo"><div><a href="{$r2[linkurl]}" target="_blank" title="{strip_tags($r2[title])}"><img src="{if $r2[thumb]}{$r2[thumb]}{else}{DT_PATH}template/{$CFG[template]}/skin/images/nopic.png{/if}" alt="{strip_tags($r2[title])}" align="left"></a><a class="texttitle" href="{$r2[linkurl]}" target="_blank" title="{strip_tags($r2[title])}">{strip_tags($r2[title])}</a></div></div></div></div>
				{/loop}
			</div>
			{/loop}
		</div>
	</div>
</div>
</div>
<script language="javascript">
$(document).ready(function (){
	$(".scroll0{$objectcount}").hover(function () {
		var id = $(".scroll0{$objectcount}").index(this);
		$(".scroll0{$objectcount}").removeClass("active").eq(id).addClass("active");
		$(".scroll0{$objectcount}box").removeClass("scrolljt").eq(id).addClass("scrolljt");
		$(".scroll0{$objectcount++}content").addClass("noactive").eq(id).removeClass("noactive");
	});
})
</script>
{/if}